package com.kunbo.cn.entity.uflo.beans;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import com.bstek.uflo.env.Context;
import com.bstek.uflo.model.ProcessInstance;
import com.bstek.uflo.process.handler.NodeEventHandler;
import com.bstek.uflo.process.node.Node;

/**
 * 提成比例变更 审批结束操作1
 * @author qin
 *
 */
@Component("RoyaltyRateChangeApproval")
public class RoyaltyRateChange implements NodeEventHandler{
	
	@Autowired
    private JdbcTemplate jdbcTemplate;
	
	private Logger logger = LoggerFactory.getLogger(RoyaltyRateChange.class);
	@Override
	public void enter(Node node, ProcessInstance processInstance, Context context) {
		// TODO Auto-generated method stub
		//System.out.println(Json.toJson(processInstance));
	}

	@Override
	public void leave(Node node, ProcessInstance processInstance, Context context) {
		// TODO Auto-generated method stub
		//System.out.println(Json.toJson(processInstance));
		String bussiness_id = processInstance.getBusinessId();
		//jdbcTemplate.
		
		
	}

}
